<template>
	<!--标签-->
	<div class="ui segments m-box">
		<div class="ui secondary segment" style="background: #17a2b8;"s><i class="tags icon" style="font-size: 1.1em;color: white;"></i><span style="font-size: 1.3rem;color: white;"> 标签</span></div>
		<div class="ui segment m-padding-small" >
			<router-link :to="`/tag/${tag.name}`"  style="font-size: 1.125rem;" class="ui label m-text-700" :class="tag.color" v-for="(tag,index) in tagList" :key="index">
				{{ tag.name }}
			</router-link>
		</div>
	</div>
</template>

<script>
	export default {
		name: "Tags",
		props: {
			tagList: {
				type: Array,
				required: true
			},
		},
	}
</script>

<style scoped>
	.secondary.segment {
		padding: 15px;
	}

	.m-padding-small {
		padding: 7px;
	}
	
	.label {
		margin: 3px !important;
	}
	
	
</style>